import request from '@/utils/request'

// 查询退款列表列表
export function listRefund(query) {
  return request({
    url: '/refund/queryList',
    method: 'get',
    params: query
  })
}

export function approved(id) {
  return request({
    url: '/refund/approved/' + id,
    method: 'get'
  })
}

export function reject(id) {
  return request({
    url: '/refund/reject/' + id,
    method: 'get'
  })
}

export function queryDict() {
  return request({
    url: '/refund/queryDict/',
    method: 'get'
  })
}


// 修改退款列表
export function submit(data) {
  return request({
    url: '/refund/submit',
    method: 'post',
    data: data
  })
}


